<tr>
    <td width="70%" align="left" valign="top">
<% for column in PostCategory.content_columns %>
<p>
  <b><%= column.human_name %>:</b> <%=h @category.send(column.name) %>
</p>
<% end %>

子分类:<br/>
<table>
  <tr>
  <% for column in PostCategory.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>

<% for child in @children%>
  <tr>
  <% for column in PostCategory.content_columns %>
    <td><%=h child.send(column.name) %></td>
  <% end %>
    <td><%= link_to 'Show', admin_category_path(child) %></td>
    <td><%= link_to 'Edit', edit_admin_category_path(child) %></td>
    <td><%= link_to 'Destroy', admin_category_path(child), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

</td>
    <td width="30%" align="left" valign="top">
 
       <%= link_to '创建子分类', new_child_admin_category_path(@category) %><br/>
 
       <%= link_to '编辑', edit_admin_category_path(@category) %><br/>
       <% unless @category.parent.nil? -%>
       <%= link_to "#{@category.parent.title}", admin_category_path(@category.parent) %><br/>
       <% end -%>
 </td>
  </tr>